#![allow(clippy::redundant_allocation)]
use bevy::prelude::*;
mod ascii;
mod player;
mod camera;
mod debug;
mod tilemap;
use ascii::AsciiPlugin;
use camera::CameraPlugin;
use player::PlayerPlugin;
use debug::DebugPlugin;
use tilemap::TilemapPlugin;
pub const TILE_SIZE: f32 = 0.1;
pub const RESOLUTION: f32 = 16.0 / 9.0;

fn main() {
    let height = 600.0;
    App::new()
        .insert_resource(ClearColor(Color::rgb(0.1, 0.1, 0.1)))
        .insert_resource(WindowDescriptor {
            width: height * RESOLUTION,
            height: height,
            title: "Bevy Game".to_string(),
            resizable: false,
            ..Default::default()
        })
        .add_plugins(DefaultPlugins)
        .add_plugin(AsciiPlugin)
        .add_plugin(PlayerPlugin)
        .add_plugin(DebugPlugin)
        .add_plugin(CameraPlugin)
        .add_plugin(TilemapPlugin)
        .run();
}

